package com.cskaoyan.service.ad.admin;

import com.cskaoyan.bean.Ad;
import com.cskaoyan.bean.ListData;
import com.cskaoyan.bean.ad.CreateAdBO;
import com.cskaoyan.bean.ad.DeleteAdBO;
import com.cskaoyan.bean.ad.UpdateAdBO;

public interface AdService {

    ListData<Ad> list(String page, String limit, String sort, String order, String name, String content);

    boolean create(CreateAdBO createAdBO);

    boolean delete(DeleteAdBO deleteAdBO);

    boolean update(UpdateAdBO updateAdBO);

    int getLastInsertId();

    Ad selectByPrimaryKey(int lastInsertId);
}
